import * as ElementPlusIconsVue from '@element-plus/icons-vue';
import SvgIcon from '~virtual/svg-component';

export default {
  install(app: any) {
    // 将SvgIcon设置为全局组件
    app.component(SvgIcon.name, SvgIcon);
    // 将导入的Element-Plus所有图标进行全局注册
    for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
      app.component(key, component);
    }
  },
};
